query find the database name